package com.debai.service;

import com.debai.pojo.Order;
import com.debai.pojo.User;
import com.debai.util.PageBean;

import java.time.LocalDateTime;
import java.util.List;

public interface UserService {
    //添加用户
    int insert(User user,int id,String token);

    //查看所有的用户
    List<User> selectAll();

    //根据id进行删除
    int delete(int userId);

    //用户进行登录
    User selectByAccountAndPassword(String userName, String userPassword);

    //根据id查询用户
    User selectById(Integer userId);

    //根据用户名查询用户
    User selectByName(String userName);

}
